package com.fzy.auth.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.fzy.auth.vo.ResourceListVo;

public class ResourceListMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		ResourceListVo vo = new ResourceListVo();
		vo.setId(new Long(rs.getLong("ID")));
		vo.setName(rs.getString("NAME"));
		vo.setUrl(rs.getString("URL"));
		return vo;
	}

}
